import React, { Component } from 'react'
import ChildHood from './ChildHood'
import { Consumer } from './Count'

export default class Child extends Component {

    render() {
        return (
            <div>
              <Consumer>
                {
                    (value) => {
                        return(
                            <div>{value.count}</div>
                        )
                    }
                }    
              </Consumer> 
              <ChildHood></ChildHood>  
            </div>
        )
    }
}
